{include file="admin/includes/header.tpl"}

<h1>Bindings</h1>

<p>{icon id='add'}<a href="{#AdminRoot#}{#BindingsPage#}?mode=add">Create a New Binding</a></p>

<table id="tables">
  <thead>
    <tr>
      <th>Name</th>
      <th>Table</th>
      <th>Form</th>
      <th colspan="2" width="140">Actions</th>
    </tr>
  </thead>
  
  <tbody>
    {foreach from=$rows item=row}
    <tr>
      <td>{$row->name}</td>
      <td>{$row->table}</td>
      <td>{$row->form}</td>
      <td>{icon id='pencil'}<a href="{#AdminRoot#}{#BindingsPage#}?mode=edit&id={$row->map_id}">Edit</a></td>
      <td>{icon id='delete'}<a href="{#AdminRoot#}{#BindingsPage#}?mode=remove&id={$row->map_id}">Remove</a></td>
    </tr>
    {/foreach}
  </tbody>
  
  <tfoot><tr><td colspan=5>&nbsp;</td></tr></tfoot>
</table>


{include file="admin/includes/footer.tpl"}